package br.com.sistema.web.mb.permissao;

import br.com.framework.client.web.Entity;
import br.com.sistema.web.mb.generic.ManagedBeanGenericSistema;

public abstract class LoginMBGeneric extends ManagedBeanGenericSistema {

	private Entity campoLogin;
	private Entity campoSenha;

	public LoginMBGeneric() {
		campoLogin = new Entity(isPrependId(), "Login", "login", 0, 30, 20, getForm(), getSubmit());
		campoSenha = new Entity(isPrependId(), "Senha", "senha", 0, 30, 50, getForm(), getSubmit());
	}

	@Override
	public boolean isPrependId() {
		return Boolean.FALSE;
	}

	@Override
	public String getForm() {
		return "formModalPanel";
	}

	public String getSubmit() {
		return "Enviar";
	}

	@Override
	public Integer getQuantidadeLinhasPaginacao() {
		return 3;
	}

	public String getTitulo() {
		return getMensagem("msg.login.titulo");
	}

	public Entity getCampoLogin() {
		return campoLogin;
	}

	public Entity getCampoSenha() {
		return campoSenha;
	}

}
